package edu.fim.core.service;

import java.sql.SQLException;
import java.util.List;


/**
 * A CRUDService offers all four basic SQL commands of a given generic type.
 * 
 * @author Itikawa
 * 
 * @param <T>
 */
public interface CRUDService<T> {

	void insert(T entity);

	T findById(Integer id) throws SQLException;

	List<T> findAll() throws SQLException;

	void update(T entity);

	void delete(T entity) throws SQLException;
}